import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/class-square',
    component: RouterView,
    meta: { title: '模型库' },
    redirect: '/class-square/list',
    children: [
      {
        path: '/class-square/list',
        component: () => import('@/views/customer/class-square/list/index.vue'),
        meta: { title: '课程广场' }
      },
      {
        path: '/class-square/class-particulars/:id',
        component: () => import('@/views/customer/class-square/class-particulars/index.vue'),
        meta: { title: '课程详情' }
      }
    ]
  }
]

export default routes
